home *** CD-ROM | disk | FTP | other *** search
- <DOMSymbolItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://ns.adobe.com/xfl/2008/" name="largeImageLoader" itemID="47b99960-0000006e" sourceFlashFilepath="..\INTERFACES\CAP 109\main_cap.fla" sourceLibraryItemHRef="largeImageLoader" sourceLastModified="1203350503" lastModified="1307114125" lastUniqueIdentifier="4">
- <timeline>
- <DOMTimeline name="largeImageLoader">
- <layers>
- <DOMLayer name="Layer 3" color="#FFFF4F" current="true" isSelected="true">
- <frames>
- <DOMFrame index="0" keyMode="9728">
- <Actionscript>
- <script><![CDATA[var imgList:Array = new Array();
- var selectedImage:Number = 0;
-
- ow = 858;
- oh = 608;
-
- function setImageList(lst) {
- trace(lst);
- imgList = lst;
- }
-
- function nextImage() {
- if (selectedImage<imgList.length-1) {
- selectedImage += 1;
- } else {
- selectedImage = 0;
- }
- loadLargeImage(selectedImage);
- }
-
- function previousImage() {
- if (selectedImage>0) {
- selectedImage -= 1;
- } else {
- selectedImage = imgList.length-1;
- }
- loadLargeImage(selectedImage);
- }
-
-
- function loadLargeImage(imgNum) {
- //trace(imgList[imgNum]);
- iName = imgList[imgNum];
- prefix = iName.split(".")[0];
- pName = prefix+"_large.jpg";
- mcl.loadClip(pName,imgHolder);
- }
-
-
- // MovieClip Loader for the preview frame
- var mclListener:Object = new Object();
-
- mclListener.onLoadComplete = function(target_mc:MovieClip) {
- //target_mc._parent._parent.back._visible = false;
- target_mc.forceSmoothing = true;
- //target_mc._parent._parent.preloader._visible = false;
- };
-
- mclListener.onLoadInit = function(mc:MovieClip) {
- var vw:Number = 858;
- var vh:Number = 608;
-
- if (mc._width>mc._height) {
- ratio = mc._height/mc._width;
- mc._width = vw;
- mc._height = vw*ratio;
- if (mc._height>vh) {
- mc._height = vh;
- mc._width = mc._height/ratio;
- }
- mc._x = (vw-mc._width)/2;
- mc._y = (vh-mc._height)/2;
- } else {
- ratio = mc._width/mc._height;
- mc._height = vh;
- mc._width = vh*ratio;
- if (mc._width>vw) {
- mc._width = vw;
- mc._height = mc._width/ratio;
- }
- mc._x = (vw-mc._width)/2;
- mc._y = (vh-mc._height)/2;
- }
-
- //target_mc._parent._visible = true;
- };
-
- // Load the preview image:
- var mcl:MovieClipLoader = new MovieClipLoader();
- mcl.addListener(mclListener);]]></script>
- </Actionscript>
- <elements/>
- </DOMFrame>
- </frames>
- </DOMLayer>
- <DOMLayer name="Layer 2" color="#9933CC">
- <frames>
- <DOMFrame index="0" keyMode="9728">
- <elements>
- <DOMSymbolInstance libraryItemName="imageArrow" name="" centerPoint3DX="805.25" centerPoint3DY="26.05">
- <matrix>
- <Matrix tx="796.95" ty="9.4"/>
- </matrix>
- <transformationPoint>
- <Point x="8.3" y="16.65"/>
- </transformationPoint>
- <Actionscript>
- <script><![CDATA[onClipEvent (load) {
-
- this.onRollOver = function() {
- this.gotoAndStop(2);
- };
-
- this.onRollOut = function() {
- this.gotoAndStop(1);
- };
- }
-
-
- on (release) {
- _root.showNextLargeImage();
- }]]></script>
- </Actionscript>
- </DOMSymbolInstance>
- <DOMSymbolInstance libraryItemName="imageClose" name="">
- <matrix>
- <Matrix tx="818" ty="9.4"/>
- </matrix>
- <transformationPoint>
- <Point x="15.65" y="16.5"/>
- </transformationPoint>
- </DOMSymbolInstance>
- <DOMSymbolInstance libraryItemName="imageArrow" name="" centerPoint3DX="782.6" centerPoint3DY="26.05">
- <matrix>
- <Matrix a="-1" d="-1" tx="790.95" ty="42.7"/>
- </matrix>
- <transformationPoint>
- <Point x="8.3" y="16.65"/>
- </transformationPoint>
- <Actionscript>
- <script><![CDATA[onClipEvent (load) {
-
- this.onRollOver = function() {
- this.gotoAndStop(2);
- };
-
- this.onRollOut = function() {
- this.gotoAndStop(1);
- };
-
- }
-
- on (release) {
- _root.showPreviousLargeImage();
- }]]></script>
- </Actionscript>
- </DOMSymbolInstance>
- </elements>
- </DOMFrame>
- </frames>
- </DOMLayer>
- <DOMLayer name="Layer 1" color="#4FFF4F">
- <frames>
- <DOMFrame index="0" keyMode="9728">
- <elements>
- <DOMSymbolInstance libraryItemName="largeImageHolder" name="imgHolder">
- <matrix>
- <Matrix ty="-3"/>
- </matrix>
- <transformationPoint>
- <Point x="428.95" y="303.95"/>
- </transformationPoint>
- </DOMSymbolInstance>
- </elements>
- </DOMFrame>
- </frames>
- </DOMLayer>
- <DOMLayer name="Layer 4" color="#FF4FFF">
- <frames>
- <DOMFrame index="0" keyMode="9728">
- <elements>
- <DOMShape>
- <fills>
- <FillStyle index="1">
- <SolidColor color="#FFFFFF"/>
- </FillStyle>
- </fills>
- <edges>
- <Edge fillStyle1="1" edges="!17324 12304|-120 12304!-120 12304|-120 -219!-120 -219|17324 -219!17324 -219|17324 12304"/>
- </edges>
- </DOMShape>
- </elements>
- </DOMFrame>
- </frames>
- </DOMLayer>
- </layers>
- </DOMTimeline>
- </timeline>
- </DOMSymbolItem>